@charset 'utf-8';
@import './common.less';
@import './header_module.less';
@import './floor_module.less';
//头部广告
.AD{
    width:1200px;
    margin: 0 auto;  
    position: relative;
    a{
        display: block;

        img{
            position: relative;
            left:-30%;
        }
    }
        span{
        width: 25px;
        height: 25px;
        background-color: darkgray;
        opacity: 0.5;
        font-size: 25px;
        text-align: center;
        line-height: 25px;
        color: white;
        border-radius: 50%;
        position: absolute;
        top: 15px;
        right:0;
    }

}
// 轮播图-左侧导航:a-nav
.carousel{
    .a-nav{
        position: absolute;
        top:18px;
        border-radius: 12px;
        box-shadow: 0 0 28px rgba(0,0,0,0.08);
        li{
            padding: 10px 16px;
            width: 200px;
            background:rgba(255,255,255,0.7);
            a{
                color: rgb(124, 121, 121);
            }
            a:hover{
                color: crimson;
            }
            span{
                display: block;
                float:right;
                width: 16px;
                height: 16px;
                background-image: url(../img/icon01.svg);
                background-position: -365px 2px;
            }
            &:hover{
                background:rgba(255,255,255,0.95);
            }
        }
        li:first-child{
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
        }
        li:last-child{
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
        }
    }
}
// 用户区：user-box
.user-box{
    display: flex;
    position: absolute;
    width: 1200px;
    height: 88px;
    background: white;
    bottom:-15px;
    border-radius: 15px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    section{
        height: 100%;
        float: left;
        &:not(:last-child){
            border-right:1px solid #eee;
            padding-top: 17px;
        }
    }
    section:nth-of-type(1){
        width: 270px;
        padding:17px 16px 0;
        img{
            width: 52px;
            height: 52px;
            float: left;
            margin-right: 20px;
        }
        span{
            a{
                color: #595454;
                &:hover{
                    color: crimson;
                }
            }
            
        } 
        >div{
            float: left;
            div{
                margin-top: 6px;
                a{
                    display: block;
                    float: left;
                    width: 66px;
                    height: 22px;
                    line-height: 22px;
                    text-align: center;
                    font-size: 13px;
                    border-radius: 5px;
                }
                a:nth-of-type(1){
                    color: crimson;
                    border:1px solid crimson;
                    margin-right: 8px;
                }
                a:nth-of-type(2){
                    color: #fde4b3;
                    background: #595454;
                }

            }
        }
    }
    section:nth-of-type(2){
        width: 660px;
        display: flex;
        justify-content: space-around;
        a{
            display: block;
            color: #595454;
            &:hover{
                color: crimson;
            }
        }
        
        span{
            width: 40px;
            height: 40px;
            display: block;
            margin: 0 auto;
            background-image: url(../img/精灵图.png);
            background-size: 300px 40px;
        }
        a:nth-of-type(1) span{
            background-position:1px 0;
        }
        a:nth-of-type(2) span{
            background-position:-40px 0;
        }
        a:nth-of-type(3) span{
            background-position:-80px 0;
        }
        a:nth-of-type(4) span{
            background-position:-120px 0;
        }
        a:nth-of-type(5) span{
            background-position:-160px 0;
        }
        a:nth-of-type(6) span{
            background-position:-200px 0;
        }
    }
    section:nth-of-type(3){
        flex: 1;
        display: flex;
        flex-direction: column;
        div{
            flex: 1;
            &:first-child{
                border-bottom: 1px solid #eee;
                div{
                    margin: 10px 8px 0 17px;
                    float: left;
                }
                a{
                    color: rgb(116, 112, 112);
                    font-weight: bolder;
                }
            }
        }
        div:last-child{
            display: flex;
            justify-content: space-around;
            a{
                display: block;
                height: 42px;
                line-height: 42px;
                flex: 1;
                text-align: center;
                color: #595454;
                position: relative;
                i{
                    display: inline-block;
                    margin-right: 2px;
                    width: 20px;
                    height: 20px;
                    background-image: url(../img/精灵图.png);
                    background-size: 300px 40px;
                    left: 16%;
                    top: 16px;
                    vertical-align:middle;
                }
                &:hover{
                    color: crimson;
                }
            }
            a:nth-of-type(1) i{
                    background-position: -240px 0;
                }
            a:nth-of-type(2) i{
                    background-position: -260px 0;
                }
            a:nth-of-type(3) i{
                    background-position: -280px 0;
                }
        }
    }
}
/* main */

#main {
    padding-top: 34px;
    background: white;
    div:not(:first-child){
        li:first-child,li:nth-of-type(5){
            margin-left: 12px;
        }
        li{
            img{
                width: 150px;
            }
        }
    }
    li:not(.jp-lo){
        width: 230px;
        float: left;
        margin-right: 12px;
        background: #fafafa;
        text-align: center;
        padding-top: 36px;
        border-radius: 10px;
        a {
            text-align: center;
            display: block;
        }
        img{
            width: 100%;
        }
        &:hover {
            transform: translate(0, -3px);
            box-shadow: 0 0 30px 3px rgba(140, 140, 140, 0.4);
        }
    }
    div{
        >a{
            >img{
                width: 100%;
                height: 100%;
            }
        }
    }
    h2 {
        font-size: 26px;
        color: #333;
        font-weight: normal;
        padding: 27px 0 13px 0;
        margin:10px 0 0 !important;
        a {
            float: right;
            line-height: 32px;
            font-size: 19px;
            color: #333;
            position: relative;
            padding-right: 38px;
            &:hover{
                color: crimson;
                use {
                    color: crimson;
                }
            }
        }
        
    }
    svg {
        position: absolute;
        right: 0;
        top: 5%;
    }
    .h2-list1{
        a:nth-of-type(3) {
            color: crimson;
            border-bottom: 2px solid #fa7929;
        }
        a:nth-of-type(2) {
            color: #333;
            border: 0px;
        }
    }
    h3,p {
        padding: 0 15px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        margin: auto;
        font-size: 13px;
        line-height: 35px;
        height: 35px;
        color: #777;
    }
    h3 {
        margin-top: 12px;
        font-weight: 400!important;
        color: black;
        font-size: 14px;
        height: 21px;
        line-height: 21px;
    }
    p{
        height: 18px;
        line-height: 18px;
        padding: 0 10px;
        margin: 2px 20px 7px;
    }
    span {
        display: inline-block;
        color: crimson;
        line-height: 21px;
        margin-bottom: 24px;
    }
    .clear-mr {
        margin-right: 0px!important;
    }
    .clear-ml{
        margin-left: 0px!important;
    }
    .clear-litop {
        padding-top: 0px;
    }
    
    .li-height {
        height: 334px;
    }
    .li-height{
        img {
            height: 100%;
        }
    }
}


#main .reset {
    text-align: left;
    padding: 0 30px;
    margin-bottom: 2px;
    width: 90px;
    height: auto;
    margin-left: 0px;
    white-space: normal;
    text-overflow: initial;
    line-height: 20px;
}

#main .reset-h3 {
    font-size: 20px;
    font-weight: bold;
    line-height: 20px;
    height: 20px;
}

/* 热销单品 */



#main{
    .rx-left {
        float: left;
        width: 230px;
        height: 592px;
        border-radius: 10px;
        img {
            height: 100%;
            border-radius: 10px;
        }
    }
    .rx{
        ul {
            width: 968px;
            float: right;
        }
        li{
            img{
                height: 150px;
            }
        }
    }
}

.li-bottom {
    margin-top: 12px;
}
/* box1 */

#main{
    .box1{
        margin-bottom: 30px;
        li {
            width: 290px;
            height: 200px;
            margin-right: 13px;
            border-radius: 20px;
            padding-top: 0!important;
            img {
                width: 100%;
                height: 200px;
                border-radius: 20px;
            }
            &:nth-of-type(4) {
                margin-right: 0px;
            }
        } 
    }
}  

/*精品推荐*/
.jp{
    position: relative;
    >span{
        position: absolute;
        width: 20px;
        height: 30px;
        background-image: url(../img/icon03.svg);
        background-position: 0px 2px ;
        z-index: 250;
        &:nth-of-type(1){
            top: 175px;
            left: 4px;
            background-position: -20px 2px ;
        }
        &:nth-of-type(2){
            top: 175px;
            right: 10px;
        }
    }
    
    .jp-box{
        position: relative;
        height:295px;
        overflow:hidden;
    }
    ul{
        position: absolute;
        width: 4356px;
        p{
            height: 36px!important;
            margin: 0!important;
            padding: 0!important;
            line-height: 36px!important;
            background: #f3f3f3;
            color: #777!important;
            text-align: center;
            font-size: 14px!important;
            border-radius: 0 0 10px 10px;
        }
        li{
            border-radius: 10px 10px 0 0!important;
            box-shadow: 0 1px 8px rgba(0,0,0,0.06)!important;
            background: white!important;
            &:first-child{
                margin-left: 0!important;
            }
            &:not(:first-child){
                margin:0 6px!important;
            }
        }
    }
    .ck{
        cursor: pointer;
        &:nth-of-type(1),&:nth-of-type(2){
            position: absolute;
            z-index: 300;
            width: 36px;
            height: 72px;
            top: 155px;
            background: rgba(0,0,0,0.06);
        }
        &:nth-of-type(1){
            left: 0px;
            border-radius:0 8px 8px 0;
        }
        &:nth-of-type(2){
            right: 0px;
            border-radius: 8px 0 0 8px;
        }
        &:nth-of-type(1):hover,&:nth-of-type(2):hover{
            background: rgba(204,204,204,0.9);
        }
    }
}
.jp-bottom,.sj-bottom{
    margin-top: 27px;
    img{
        border-radius: 10px;
    }
}
/*手机*/
.sj{
    li:first-child{
        padding: 0!important;
        img{
            width: 230px!important;
            border-radius: 10px;
        }
    }
}
h2{
    vertical-align: baseline;
    ul{
        display:inline-block ;
        margin-left: 28px;
        .jp-lo{
            float: left;
            a{
                font-size: 14px!important;
                margin-left: 0;
                margin-right: 24px;
                padding: 0!important;
            }
        }
    }
}
#main{
    .jp-lo{
        a{
            color: #999;
        }
    }
}
.sj-bottom{
    margin-bottom: 60px!important;
}

/* slider-nav */

#slider-nav {
    position: fixed;
    right: 0;
    top: 17%;
    right: 15px;
    z-index: 10000;
    padding-bottom: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 5px #ddd;
    li {
        a{
            padding-top: 12px;
            width: 80px;
            height: 68px;
            display: block;
            position: relative;
            text-align: center;
            color:#999;
            span{
                display: inline-block;
                width: 40px;
                height:40px;
                background-image: url(../img/icon-common.svg);
            }
            p{
                line-height: 16px;
                height: 16px;
                margin: 0!important;
                font-size: 13px!important;
            }
            &:hover{
                color: #ca141d;
            }
        }
        &:nth-child(1){
            span{
                background-position: 0 -30px;
            }
            &:hover{
                span{
                    background-position: 0 -70px;
                }
            }
        } 
        &:nth-child(2){
           span{
                background-position:-40px -32px;
            } 
            &:hover{
                span{
                    background-position: -40px -72px;
                }
            }
        } 
        &:nth-child(3){
            border-radius: 0 0 10px 10px;
            span{
                 background-position:-80px -32px;
             } 
             &:hover{
                 span{
                     background-position: -80px -72px;
                 }
             }
         }
         &:nth-child(4){
            span{
                 background-position:-120px -32px;
             } 
             &:hover{
                 span{
                     background-position: -120px -72px;
                 }
             }
         }
    }
}



